import request from '@/utils/request'

// 查询设备附件列表
export function listDeviceEnclosure(query) {
  return request({
    url: '/business/deviceEnclosure/list',
    method: 'get',
    params: query
  })
}

// 查询设备附件详细
export function getDeviceEnclosure(id) {
  return request({
    url: '/business/deviceEnclosure/' + id,
    method: 'get'
  })
}

// 新增设备附件
export function addDeviceEnclosure(data) {
  return request({
    url: '/business/deviceEnclosure',
    method: 'post',
    data: data
  })
}

// 修改设备附件
export function updateDeviceEnclosure(data) {
  return request({
    url: '/business/deviceEnclosure',
    method: 'put',
    data: data
  })
}

// 删除设备附件
export function delDeviceEnclosure(id) {
  return request({
    url: '/business/deviceEnclosure/' + id,
    method: 'delete'
  })
}

// 新增设备附件
export function deviceEnclosureUpload() {
	return process.env.VUE_APP_BASE_API + '/business/deviceEnclosure/upload'
}